package com.leadingsoft.pwxk.converter;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.RegionCodeDto;
import com.leadingsoft.pwxk.model.RegionCode;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class RegionCodeConverter extends AbstractConverter<RegionCode, RegionCodeDto> {

	@Override
	protected RegionCodeDto toDtoActual(RegionCode model) {
		// TODO Auto-generated method stub

		RegionCodeDto dto = new RegionCodeDto();
		BeanUtils.copyProperties(model, dto);
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		return dto;
	}

	public void copyProperties(RegionCode model, RegionCodeDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());

	}

}
